home *** CD-ROM | disk | FTP | other *** search
- Path: news.ichange.com!newsmaster
- From: Jesse Liberty <jl@staff.ichange.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Class vs. Struct - was Re: No struct in C++!!?
- Date: Mon, 19 Feb 1996 07:32:55 -0500
- Organization: AT&T
- Message-ID: <31286DF7.48F5@staff.ichange.com>
- References: <31235E0C.252C@idi.oclc.org> <4g36me$abk@news1.usa.pipeline.com>
- NNTP-Posting-Host: 140.244.99.60
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (Win95; I)
- CC: jl@staff.ichange.com
-
- These misunderstandings are amazingly persistent. Let's be clear:
-
- The keyword struct and class are EXACTLY alike in C++ with two minor
- differences: 1) in struct all class members and methods are by default
- public (though you can of course declare them to be protected or
- private) and inheritance is by default public, though again you can
- declare it private.
-
- There is no other difference. You can use them interchangably other than
- the above.
-
- Thanks. -j
-